import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MesSystemComponent} from './mes-system.component';

const routes: Routes = [
    {path: '', component: MesSystemComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mes-system/add-mes-system.module#AddMesSystemModule'},
            {path: 'list', loadChildren: './list-mes-system/list-mes-system.module#ListMesSystemModule'},
            {path: 'modify', loadChildren: './modify-mes-system/modify-mes-system.module#ModifyMesSystemModule'},
            {path: 'report', loadChildren: './report-mes-system/report-mes-system.module#ReportMesSystemModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MesSystemRoutingModule {
}
